'''
Created on 2011-9-22

@author: zxz
'''
import urllib2, urllib

data = {'email':'zhuxuezheng@gmail.com','name':'zxz','password':'12345','rpassword':'12345'}
f = urllib2.urlopen(url='http://localhost:5000/user/register/',data=urllib.urlencode(data))
print f.read()


data = {'username':'zhuxuezheng@gmail.com','password':'12345'}
f = urllib2.urlopen(url='http://localhost:5000/user/login/',data=urllib.urlencode(data))
print f.read()
